/*
 * Copyright (c) JoinQuant Development Team
 * Author: Huayong Kuang <kuanghuayong@joinquant.com>
 */

#include <iostream>
#include <yaml-cpp/yaml.h>

using namespace std;

int main(void)
{
    YAML::Node config = YAML::LoadFile("simple-example.yaml");
    cout << "name: " << config["name"].as<string>() << endl;
    cout << "age: " << config["age"].as<int>() << endl;

    return 0;
}

// g++ simple-example.cpp -I/opt/lib/yaml-cpp/include -L/opt/lib/yaml-cpp/lib -Wl,-Bstatic -lyaml-cpp -Wl,-Bdynamic
